package ils.services;

import ils.domain.catalog.model.Book;
import ils.domain.catalog.model.Category;

import java.util.List;
import java.util.Map;

public interface CatalogService
{
    public Book addBook(Book book);
    public Category createCategory(String categoryName, Integer parentId);
    public List<Book> getBooksInCategory(boolean includeSubCategories, int categoryId);
    public List<Book> getBooksInCategory(String categoryName, boolean  includeSubCategories);
    public List<Category> getSubCategories(Integer id);
    public List<Book> searchBooks(String type, String term);
    public Map<Integer, Book> getBooks(List<Integer> bookIds);
}
